package com.oto.server;

import org.springframework.beans.factory.annotation.Configurable;

import com.caucho.hessian.server.HessianServlet;
import com.oto.api.SearchService;
import com.oto.message.Response;
import com.oto.message.SearchResponse;

/**
 * @author xueqiang.mi
 * @since 2011-1-9
 */
@Configurable
public class SearchServiceImpl extends HessianServlet implements SearchService {
	private static final long serialVersionUID = -8999894332012134588L;

	public SearchResponse search(String keywords) {
		SearchResponse resp = new SearchResponse();
		resp.setResult(Response.RST_OK);
		resp.setMessage(keywords);
		return resp;
	}
}
